package zl.osimall.common.mapper;

import org.apache.ibatis.annotations.Mapper;
import zl.osimall.common.bean.Goods;

import java.util.List;

@Mapper
public interface GoodsMapper {
    int insert(Goods goods);

    int delete(Integer id);

    int update(Goods goods);

    List<Goods> selectByCondition(Goods condition);

    List<Goods> selectByLike(Goods condition);

    List<Goods> selectByCount();

    Goods selectById(Integer id);
}
